<template>
  <div class="tip-wrap">
    <el-tooltip class="tip" :placement="placement" v-bind="$attrs">
      <svg-icon icon-class="yiwenwenhao-line" />
      <div slot="content">
        <slot name="tip" />
      </div>
    </el-tooltip>
    <slot />

  </div>
</template>

<script>
export default {
  name: 'Tip',
  props: {
    placement: {
      type: String,
      default: 'top-start'
    }
  },
  data() {
    return {
    }
  }
}
</script>
<style lang="scss" scoped>
.tip-wrap{
  display: flex;
  justify-content: flex-start;
  align-items: center;
  &>.tip{
    margin-left: 5px;
    flex: 0 0 auto;
    color: #16bc83;
  }
}
</style>